$NG.AllReady(function (page, { useAction, useBeforeClick, useValuesChange, useClick, useUpdateRow, subscribe, useUpdateRows }) {
    const mstform = $NG.getCmpApi("p_form_tssxsp_m")
    const dgrid3 = $NG.getCmpApi("p_form_tssxsp_d3")
    const getHeadValue = (str)=>mstform.getItem(str).getValue()

    useUpdateRows(()=>{
        const rows = dgrid3.getRows()
        rows.forEach(el=>{
            el.u_lr2 = (Number(el.u_dydcbhtje) || 0) - (Number(el.u_nfb2) || 0) - (Number(el.u_fyxj1) || 0)
            el.u_lr1 = (Number(el.u_lr2) || 0) / (Number(el.u_gcl) || 0)
            el.u_nfb2 = (Number(el.u_nfb1) || 0) * (Number(el.u_gcl) || 0)
            el.u_cl2 = (Number(el.u_cl1) || 0) * (Number(el.u_gcl) || 0)
            el.u_jx2 = (Number(el.u_jx1) || 0) * (Number(el.u_gcl) || 0)
            el.u_qtfy2 = (Number(el.u_qtfy) || 0) * (Number(el.u_gcl) || 0)
            el.u_sj2 = (Number(el.u_sj1) || 0) * (Number(el.u_gcl) || 0)
            el.u_dydcbhtje = (Number(el.u_lr2) || 0) + (Number(el.u_nfb2) || 0)
        })
        dgrid3.refreshView()
    },"p_form_tssxsp_d3")
})